'''
Created on 01/05/2012

@author: Wilson
'''
from core.database.engine import Session

class GenericDao(object):
    def __init__(self, classe):
        self.session = Session()
        self.classe = classe
        
    def insert(self, obj):
        pass
    
    def update(self, obj):
        pass
    
    def delete(self, obj):
        pass
    
    def query(self):
        return self.session.query(self.classe)
        
        
        